Piwik\CronArchive\QueueConsumer B

Total Complexity 97
Dependencies 18
Dependents 1
Total lines 471
Lines of code 318
Logical lines of code 226
Comment lines 112
Methods 21
Properties 17

Methods 21

Method Rating Maintainability Complexity Lines of code
getNextArchivesToProcess()
C
30 25 127
shouldSkipArchiveBecauseLowerPeriodOrSegmentIsInProgress()
A
52 12 22
hasIntersectingPeriod()
A
57 10 15
archiveArrayContainsArchive()
S
64 9 8
getNextInvalidatedArchive()
S
50 7 27
usableArchiveExists()
S
52 5 22
isArchiveNonSegmentAndInProgressArchiveSegment()
S
68 6 6
findSegmentForArchive()
S
57 3 16
isArchiveOfLowerPeriod()
S
66 3 8
addInvalidationToExclude()
S
71 2 6
getPluginNameForArchiveIfAny()
S
66 2 8
setMaxSitesToProcess()
S
72 2 6
shouldSkipArchive()
S
72 2 6
canSkipArchiveBecauseNoPoint()
S
62 2 10
__construct()
S
60 1 13
detectPluginForArchive()
S
79 1 3
ignoreIdInvalidation()
S
80 1 3
skipToNextSite()
S
81 1 3
getNextIdSiteToArchive()
S
81 1 3
getInvalidationDescription()
S
75 1 3
getIdSite()
S
82 1 3